# !/usr/bin/env python
# -*-coding:utf-8 -*-

"""
# File       : gsm.py
# Time       ：2025/5/29 16:28
# Description：
"""
from utils.log import log

from fastapi import Request, APIRouter

gsm = APIRouter()


@gsm.post("/{prefix:path}/cancelGame")
async def gsm_cancel_game(request: Request):
    req = await request.body()
    log.info(f"received req({request.url.path}) reqBody({request.body()})")
    return {
        "ret": {
            "msg": "success",
            "code": 0,
            "request_id": "%v"
        },
        "body": {
            "exist_flow_id": "%v",
            "exist_uid": 0,
            "gid": "",
            "exist_gid": ""  # TODO 获取GID
        }
    }
